package com.sjzd.meeting.dao;

import com.sjzd.meeting.pojo.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * RoleDAO继承基类
 */
@Mapper
public interface RoleDAO extends MyBatisBaseDao<Role, Integer> {

    @Select("select * from role")
    List<Role> findAll();

    List<Role> findByCondition(@Param("rname") String rname, @Param("status") Integer status);
}